﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vulild.AopDecoration
{
    public class AopContext<T>
    {
        public Dictionary<string, object> Params { get; set; } = new Dictionary<string, object>();

        public T? Instance { get; set; }

        public Exception? Exception { get; set; }

        public string? MemberName { get; set; }

        public object? Result { get; set; }

        public object? Tag { get; set; }

        public void AddParam(string paramName, object value)
        {
            Params[paramName] = value;
        }
    }
}
